// Import vue component
import SketchRuler from './sketchRuler.vue'

export function install(Vue: any) {
  if (install.installed) { return }
  install.installed = true
  Vue.component(SketchRuler.name, SketchRuler)
}

const plugin = {
  install,
}

let GlobalVue = null
if (typeof window !== 'undefined') {
  GlobalVue = window.Vue
}
if (GlobalVue) {
  GlobalVue.use(plugin)
}

export { SketchRuler }
